package com.tansun.easycare.rule.ruletest.model;

import java.util.ArrayList;
import java.util.List;

public class TestDatasetVO implements Comparable<TestDatasetVO> {

    private String name;        // 数据集名
    private String chzn;        // 中文名
    private String paramType;        // 类型（输入，输出，输入与输出，仅复用）
    private int  rowNum;

    private List<RuleItem> attrList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getChzn() {
        return chzn;
    }

    public void setChzn(String chzn) {
        this.chzn = chzn;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public List<RuleItem> getAttrList() {
        if (attrList == null) {
            attrList = new ArrayList();
        }
        return attrList;
    }

    public void setAttrList(List<RuleItem> attrList) {
        this.attrList = attrList;
    }

	@Override
	public int compareTo(TestDatasetVO o) {
		return name.compareTo(o.name);
	}

	public int getRowNum() {		
		return this.getAttrList().size();
	}


}
